package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderRefund;
import com.nbsaas.boot.order.api.domain.request.OrderRefundRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 订单退款请求对象转换成实体对象
*/

public class OrderRefundEntityConvert  implements Converter<OrderRefund, OrderRefundRequest> {

    @Override
    public OrderRefund convert(OrderRefundRequest source) {
        OrderRefund result = new OrderRefund();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

